<cfcomponent name="TestDAO" extends="org.cfcunit.framework.TestCase">
	<cffunction name="setUp" access="public" output="false" hint="">
		<cfset var local = StructNew() />
		<cfset local.serviceDefinitionLocation = ExpandPath( '/revenea/testsuite/coldspring.xml' ) />
		<cfset beanFactory = CreateObject('component', 'coldspring.beans.DefaultXmlBeanFactory').init() />
		<cfset beanFactory.loadBeansFromXmlFile(local.serviceDefinitionLocation) />
		<cfset setDAO(beanFactory.getBean('DAO')) />
	</cffunction>
	
	<cffunction name="getDAO" access="private" output="false" hint="I return the DAO.">
		<cfreturn variables.instance.DAO />
	</cffunction>
		
	<cffunction name="setDAO" access="private" output="false" hint="I set the DAO.">
		<cfargument name="DAO" required="true" hint="DAO" />
		<cfset variables.instance.DAO = arguments.DAO />
	</cffunction>
	
</cfcomponent>